/* 基础样式重置和响应式设计 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    line-height: 1.15;
    font-size: 0.5rem;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 50%, #0f1419 100%);
    font-family: 'Microsoft YaHei', 'Consolas', 'Monaco', monospace;
    overflow: hidden;
    position: relative;
}

/* 移除背景图片遮罩层 */

/* 简化的科技感背景 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 98px,
            rgba(0, 108, 255, 0.02) 100px
        ),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 98px,
            rgba(106, 204, 163, 0.02) 100px
        );
    pointer-events: none;
    z-index: -2;
}



ul {
    list-style: none;
}

a {
    text-decoration: none;
}

/* 响应式字体大小 */
html {
    font-size: 16px;
}

/* 主容器 */
.rescue-system {
    width: 100vw;
    height: 100vh;
    margin: 0;
    padding: 0.4rem;
    display: grid;
    grid-template-rows: auto auto 1fr; /* 标题、tab栏、小，内容1fr */
    gap: 0.4rem;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

/* 主容器科技感装饰 */
.rescue-system::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 50px,
            rgba(0, 108, 255, 0.03) 51px,
            rgba(0, 108, 255, 0.03) 52px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 50px,
            rgba(106, 204, 163, 0.03) 51px,
            rgba(106, 204, 163, 0.03) 52px
        );
    pointer-events: none;
    z-index: 0;
}

/* 标题栏 */
.system-header {
    height: 3rem;
    background: 
        url('/images/headBg.png') center/cover no-repeat,
        linear-gradient(90deg, rgba(0, 108, 255, 0.15) 0%, rgba(106, 204, 163, 0.15) 100%),
        linear-gradient(135deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.1) 100%);
    border: none;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    backdrop-filter: blur(15px);
    box-shadow: 
        0 0 40px rgba(0, 108, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 4px 20px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.system-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(0, 108, 255, 0.1) 50%, 
        transparent 100%);
    animation: scanLine 3s linear infinite;
    border-radius: 8px;
}

@keyframes scanLine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.system-header h1 {
    font-size: 1.4rem;
    color: #fff;
    text-align: center;
    font-weight: bold;
    text-shadow: 
        0 0 12px rgba(0, 242, 241, 0.9),
        0 0 24px rgba(0, 108, 255, 0.6),
        0 0 36px rgba(0, 108, 255, 0.4);
    letter-spacing: 3px;
    z-index: 1;
    position: relative;
    font-family: 'Microsoft YaHei', 'Arial Black', sans-serif;
}

.system-header h1::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -10px;
    right: -10px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        transparent 30%, 
        rgba(0, 242, 241, 0.1) 50%, 
        transparent 70%);
    border-radius: 4px;
    z-index: -1;
    animation: titleGlow 2s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    0% {
        box-shadow: 
            0 0 20px rgba(0, 242, 241, 0.3),
            inset 0 0 20px rgba(0, 108, 255, 0.1);
    }
    100% {
        box-shadow: 
            0 0 40px rgba(0, 242, 241, 0.6),
            inset 0 0 30px rgba(0, 108, 255, 0.2);
    }
}

/* 主要内容区域 */
.main-content {
    display: grid;
    grid-template-columns: 2.5fr 4fr 2.5fr;
    gap: 0.5rem;
    height: 100%;
    overflow: hidden;
}

/* 左侧面板 */
.left-panel {
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 0.5rem;
    overflow: hidden;
}

/* 中间地图区域 */
.center-panel {
    display: grid;
    grid-template-rows: 1fr auto;
    gap: 0.5rem;
    overflow: hidden;
}

/* 右侧面板 */
.right-panel {
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 0.5rem;
    overflow: hidden;
}

/* 面板通用样式 - 完全透明化 */
.panel {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0.3rem;
    position: relative;
    backdrop-filter: none;
    box-shadow: none;
    overflow: hidden;
    transition: none;
}

/* 移除面板悬停效果 */
.panel:hover {
    background: transparent;
    box-shadow: none;
    transform: none;
}

/* 面板科技感装饰 */
.panel::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 20px,
            rgba(0, 108, 255, 0.02) 21px,
            rgba(0, 108, 255, 0.02) 22px
        ),
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 30px,
            rgba(106, 204, 163, 0.01) 31px,
            rgba(106, 204, 163, 0.01) 32px
        );
    pointer-events: none;
    z-index: 0;
}

.panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(0, 108, 255, 0.1) 50%, 
        transparent 100%);
    animation: panelScan 4s linear infinite;
}

@keyframes panelScan {
    0% { left: -100%; }
    100% { left: 100%; }
}

.panel h3 {
    font-size: 0.7rem;
    color: #fff;
    margin-bottom: 0.8rem;
    text-align: center;
    text-shadow: 
        0 0 8px rgba(0, 108, 255, 0.8),
        0 0 16px rgba(0, 108, 255, 0.4);
    font-weight: 600;
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
}

.panel h3::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #006cff, transparent);
}

/* 低空救援力量部署面板 */
.rescue-deployment {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.deployment-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
    flex: 1;
}

.stat-item {
    text-align: center;
    background: rgba(0, 242, 241, 0.1);
    border: 1px solid rgba(0, 242, 241, 0.3);
    border-radius: 8px;
    padding: 0.8rem;
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #00f2f1, #006cff);
}

.stat-item h4 {
    font-size: 1.4rem;
    color: #00f2f1;
    margin-bottom: 0.3rem;
    text-shadow: 
        0 0 10px rgba(0, 242, 241, 0.8),
        0 0 20px rgba(0, 242, 241, 0.4);
    font-weight: bold;
    font-family: 'Consolas', monospace;
}

.stat-item span {
    font-size: 0.6rem;
    color: #4c9bfd;
    font-weight: 500;
}

/* 飞行器类型分布 */
.aircraft-distribution {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.aircraft-types {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 0.8rem;
}

.aircraft-type {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem;
    background: 
        linear-gradient(90deg, rgba(76, 155, 253, 0.1) 0%, rgba(0, 242, 241, 0.1) 100%);
    border: 1px solid rgba(76, 155, 253, 0.3);
    border-radius: 6px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.aircraft-type::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #4c9bfd, #00f2f1);
}

.aircraft-type:hover {
    background: 
        linear-gradient(90deg, rgba(76, 155, 253, 0.2) 0%, rgba(0, 242, 241, 0.2) 100%);
    transform: translateX(4px);
}

.aircraft-type span {
    color: #4c9bfd;
    font-size: 0.6rem;
    font-weight: 500;
}

.aircraft-type .count {
    color: #00f2f1;
    font-weight: bold;
    font-family: 'Consolas', monospace;
    text-shadow: 0 0 8px rgba(0, 242, 241, 0.6);
}

.chart-container {
    flex: 1;
    min-height: 120px;
}

/* 地图容器 - 完全透明化 */
.map-container {
    height: 100%;
    background: transparent;
    border: none;
    border-radius: 0;
    position: relative;
    backdrop-filter: none;
    box-shadow: none;
    overflow: hidden;
    transition: none;
}

/* 移除地图容器悬停效果 */
.map-container:hover {
    background: transparent;
    box-shadow: none;
    transform: none;
}

.map-container h3 {
    position: absolute;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    background: rgba(0, 0, 0, 0.7);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    border: 1px solid rgba(0, 108, 255, 0.5);
    backdrop-filter: blur(10px);
}

#map {
    width: 100%;
    height: 100%;
    border-radius: 10px;
}

/* 年份选择器 - 透明化 */
.year-selector {
    height: 2.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: none;
    border-radius: 0;
    backdrop-filter: none;
    box-shadow: none;
    padding: 0.5rem;
    transition: none;
}

/* 移除年份选择器悬停效果 */
.year-selector:hover {
    background: transparent;
    box-shadow: none;
    transform: none;
}

.year-btn {
    padding: 0.4rem 0.8rem;
    background: rgba(0, 108, 255, 0.2);
    border: 1px solid rgba(0, 108, 255, 0.5);
    border-radius: 6px;
    color: #4c9bfd;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.6rem;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.year-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.year-btn:hover::before,
.year-btn.active::before {
    left: 100%;
}

.year-btn:hover,
.year-btn.active {
    background: linear-gradient(135deg, #006cff, #4c9bfd);
    color: #fff;
    box-shadow: 
        0 0 15px rgba(0, 108, 255, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* 实时救援指挥与通信 */
.rescue-command {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.command-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
    flex: 1;
}

.command-item {
    text-align: center;
    padding: 0.6rem;
    background: 
        linear-gradient(135deg, rgba(106, 204, 163, 0.1) 0%, rgba(0, 108, 255, 0.1) 100%);
    border: 1px solid rgba(106, 204, 163, 0.3);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.command-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #6acca3, #006cff);
}

.command-item:hover {
    background: 
        linear-gradient(135deg, rgba(106, 204, 163, 0.2) 0%, rgba(0, 108, 255, 0.2) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(106, 204, 163, 0.3);
}

.command-item h4 {
    font-size: 1.1rem;
    color: #00f2f1;
    margin-bottom: 0.3rem;
    text-shadow: 
        0 0 8px rgba(0, 242, 241, 0.6),
        0 0 16px rgba(0, 242, 241, 0.3);
    font-weight: bold;
    font-family: 'Consolas', monospace;
}

.command-item span {
    font-size: 0.55rem;
    color: #4c9bfd;
    font-weight: 500;
}

/* 视频播放区域 */
.video-section {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.video-placeholder {
    width: 100%;
    flex: 1;
    background: 
        linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.8) 100%);
    border: 2px dashed rgba(0, 108, 255, 0.5);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4c9bfd;
    font-size: 0.7rem;
    position: relative;
    overflow: hidden;
}

.video-placeholder::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border: 3px solid rgba(0, 108, 255, 0.3);
    border-top: 3px solid #006cff;
    border-radius: 50%;
    animation: videoSpin 2s linear infinite;
}

@keyframes videoSpin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* 底部数据分析面板 - 完全透明化 */
.bottom-panel {
    height: 100%;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0.6rem;
    position: relative;
    backdrop-filter: none;
    box-shadow: none;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    transition: none;
}

/* 移除底部面板悬停效果 */
.bottom-panel:hover {
    background: transparent;
    box-shadow: none;
    transform: none;
}

.bottom-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(0, 108, 255, 0.1) 50%, 
        transparent 100%);
    animation: panelScan 4s linear infinite;
}

.bottom-panel h3 {
    font-size: 0.7rem;
    color: #fff;
    margin-bottom: 0.6rem;
    text-align: center;
    text-shadow: 
        0 0 8px rgba(0, 108, 255, 0.8),
        0 0 16px rgba(0, 108, 255, 0.4);
    font-weight: 600;
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
}

.bottom-panel h3::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #006cff, transparent);
}

.data-analysis {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.6rem;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 0.2rem;
}

/* 底部面板专用滚动条样式 */
.bottom-panel::-webkit-scrollbar,
.data-analysis::-webkit-scrollbar {
    width: 8px;
}

.bottom-panel::-webkit-scrollbar-track,
.data-analysis::-webkit-scrollbar-track {
    background: rgba(0, 108, 255, 0.1);
    border-radius: 4px;
}

.bottom-panel::-webkit-scrollbar-thumb,
.data-analysis::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #006cff, #4c9bfd);
    border-radius: 4px;
    box-shadow: 0 0 8px rgba(0, 108, 255, 0.5);
}

.bottom-panel::-webkit-scrollbar-thumb:hover,
.data-analysis::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #4c9bfd, #00f2f1);
    box-shadow: 0 0 12px rgba(0, 242, 241, 0.8);
}

.analysis-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: 
        linear-gradient(135deg, rgba(237, 63, 53, 0.1) 0%, rgba(234, 207, 25, 0.1) 100%);
    border: 1px solid rgba(237, 63, 53, 0.3);
    border-radius: 8px;
    padding: 0.4rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.analysis-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #ed3f35, #eacf19);
}

.analysis-item:nth-child(2) {
    background: 
        linear-gradient(135deg, rgba(106, 204, 163, 0.1) 0%, rgba(0, 108, 255, 0.1) 100%);
    border-color: rgba(106, 204, 163, 0.3);
}

.analysis-item:nth-child(2)::before {
    background: linear-gradient(90deg, #6acca3, #006cff);
}

.analysis-item:nth-child(3) {
    background: 
        linear-gradient(135deg, rgba(0, 242, 241, 0.1) 0%, rgba(76, 155, 253, 0.1) 100%);
    border-color: rgba(0, 242, 241, 0.3);
}

.analysis-item:nth-child(3)::before {
    background: linear-gradient(90deg, #00f2f1, #4c9bfd);
}

.analysis-item:nth-child(4) {
    background: 
        linear-gradient(135deg, rgba(237, 136, 132, 0.1) 0%, rgba(255, 159, 127, 0.1) 100%);
    border-color: rgba(237, 136, 132, 0.3);
}

.analysis-item:nth-child(4)::before {
    background: linear-gradient(90deg, #ed8884, #ff9f7f);
}

.analysis-item:nth-child(5) {
    background: 
        linear-gradient(135deg, rgba(0, 150, 255, 0.1) 0%, rgba(159, 230, 184, 0.1) 100%);
    border-color: rgba(0, 150, 255, 0.3);
}

.analysis-item:nth-child(5)::before {
    background: linear-gradient(90deg, #0096ff, #9fe6b8);
}

.analysis-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 108, 255, 0.3);
}

.analysis-item h4 {
    font-size: 0.9rem;
    color: #00f2f1;
    margin-bottom: 0.2rem;
    text-shadow: 
        0 0 8px rgba(0, 242, 241, 0.6),
        0 0 16px rgba(0, 242, 241, 0.3);
    font-weight: bold;
    font-family: 'Consolas', monospace;
}

.analysis-item span {
    font-size: 0.5rem;
    color: #4c9bfd;
    font-weight: 500;
    line-height: 1.2;
}

.analysis-item .unit {
    font-size: 0.4rem;
    color: #6acca3;
    margin-top: 0.2rem;
    opacity: 0.8;
}

.bottom-note {
    text-align: center;
    margin-top: 0.3rem;
    color: #6acca3;
    font-size: 0.45rem;
    opacity: 0.7;
    z-index: 1;
    position: relative;
}

/* 图表容器 */
.chart-container {
    flex: 1;
    min-height: 120px;
    position: relative;
}

.chart-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 50% 50%, rgba(0, 108, 255, 0.05) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* 响应式设计 */
@media screen and (max-width: 1600px) {
    html {
        font-size: 15px;
    }
    
    .rescue-system {
        padding: 0.3rem;
        gap: 0.3rem;
    }
    
    .main-content {
        gap: 0.3rem;
    }
}

@media screen and (max-width: 1400px) {
    html {
        font-size: 14px;
    }
    
    .rescue-system {
        grid-template-rows: auto auto 1fr;
    }
    
    .panel {
        padding: 0.6rem;
    }
}

@media screen and (max-width: 1200px) {
    html {
        font-size: 13px;
    }
    
    .main-content {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
    }
    
    .rescue-system {
        grid-template-rows: auto auto 1fr;
    }
    
    .left-panel,
    .right-panel {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }
}

/* 动画效果 */
@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(0, 108, 255, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(0, 108, 255, 0.8);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.panel:hover {
    animation: glow 2s infinite;
}

.stat-item h4, .command-item h4, .analysis-item h4 {
    animation: pulse 3s infinite;
}

.panel {
    animation: slideInUp 0.6s ease-out;
}

.panel:nth-child(1) { animation-delay: 0.1s; }
.panel:nth-child(2) { animation-delay: 0.2s; }
.panel:nth-child(3) { animation-delay: 0.3s; }

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
    background: #006cff;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #4c9bfd;
}